This page last changed on Feb 20, 2008 by scytacki.

Sensor configuration design

For teemss 2 we have describe data collectors as being:

  • single data collection boxes.
  • table of data collection boxes.
  • graph of data collection
  • image behind a data collector graph
  • predrawn data on the same graph.

A data collector is defined as something like a simulation in the concord framework. There is a start and stop button. Which controls the data producer. Most often this data producer is a probe, but it could be a microphone.

The data collector then is a mapping between a data producer, or collection of data producers and one or more output view. The output view can be a:

  • line graph
  • table
  • single value box
  • bar graph

test code blah blah

The source of data can be a probe, or a student drawing a line, or typing in values.

So the data collector object will have:

  • 1 or more data stores
    • these store data coming from the user or from a probe.
    • each data store will need to be configured with a probe or set to allow user data.
  • 1 or more input/output views
    • these display the data in the data store
    • they optionally can allow the user to edit or add new data
    • they need to be configured for each data store.

Examples

Display a line graph with a preset line of data. (no data collector needed for a static graph)

  • create or reference a data store with the preset data.
  • create a data graph add data store and set axis to be auto scaled.

Display a line graph of data coming from a temperature probe.

  • create or reference a temperature probe data producer. This will have quanities like: required response time.
  • create a data graph and configure its axis.
  • create a data collector - The collector makes new data stores based on the start and stops of the data collector.
    • add temperature producer to it.
    • add data graph to it - and link temperature producer to axis on the graph.

When the start button is pressed the data collector:

  • makes a data store and adds it to the graph with the specified axis.
  • addes the data store as a listener to the probe data producer.
  • calls start on the probe data producer.

Display a line graph with a preset line of data and collect a line of temperature data ontop.

  • create or reference a temperature probe data producer. This will have quanities like: required response time.
  • create or reference a data store with the preset data.
  • create a data graph and configure its axis.
  • create a data collector - The collector makes new data stores based on the start and stops of the data collector.
    • add temperature producer to it.
    • add data store with preset data.
    • add data graph to it - and link temperature producer and preset data to axis on the graph.

In this case the data collector controls the logic of mixing the preset data with the collected data.

Have the student draw a line and collect temperature data ontop

  • create an empty data store for the students drawn data.
  • create or reference a temperature probe data producer. This will have quanities like: required response time.
  • create a data graph and configure its axis.
  • create a data collector - The collector makes new data stores based on the start and stops of the data collector.
    • add temperature producer to it.
    • add empty data store.
    • add data graph to it - and link temperature producer and empty data to axis on the graph. also confgure the
      graph to put the drawn data into the empty data store.

need ui for drawning the line, (clearing, erasing, vector tools) - the graph will have to customized for this when the empty data store is added.

Document generated by Confluence on Jan 27, 2014 16:43